module.exports = {
  value: {
    type: [Boolean, String, Number],
    default: '',
    name: '选中标签名称',
    filedType: 'value',
    dataSource: {
      from: 'tabs',
      type: 'array',
      labelKey: 'label',
      valueKey: 'value'
    }
  },

  tabs: {
    type: Array,
    default () {
      return [
        {
          label: '标签一',
          anchor: 'id1'
        },
        {
          label: '标签二',
          anchor: 'id2'
        },
        {
          label: '标签名称',
          anchor: 'id6'
        },
        {
          label: '链接示例',
          value: '3',
          anchor: 'id3'
        },
        {
          label: '锚点示例',
          value: '4',
          anchor: 'id4'
        },
        {
          label: '权限链接',
          value: '5',
          href: './demo',
          roles: ['1000000002']
        }
      ]
    },
    name: '标签列表',
    nameTip: '数据项中指定href属性，该标签会成为一个链接，指定anchor属性，该标签会成为一个定位锚点，anchor属性请与组件的id名称配合使用',
    filedType: 'api'
  },

  type: {
    type: String,
    default: 'round',
    name: '样式类型',
    filedType: 'select',
    options: [
      {
        name: '圆形',
        value: 'round'
      },
      {
        name: '普通',
        value: '1ine'
      }
    ]
  },

  height: {
    type: String,
    default: '44px',
    name: '高度',
    filedType: 'string'
  },

  padding: {
    type: String,
    default: '6px 0',
    name: '标签内边距',
    filedType: 'string'
  },

  color: {
    type: String,
    default: '#333',
    name: '字体颜色',
    filedType: 'color'
  },

  background: {
    type: String,
    default: '#ffffff',
    name: '标签栏背景色',
    filedType: 'color'
  },

  tabFontSize: {
    type: String,
    default: '14px',
    name: '标签字体大小',
    filedType: 'string'
  },

  lineColor: {
    type: String,
    default: '#1276ff',
    name: '底部条颜色',
    nameTip: '样式类型为普通时才可用',
    filedType: 'color'
  },

  lineHeight: {
    type: String,
    default: '3px',
    name: '底部条高度',
    nameTip: '样式类型为普通时才可用',
    filedType: 'string'
  },

  ellipsis: {
    tybe: Boolean,
    default: false,
    name: '是否隐藏过长文字',
    filedType: 'switch'
  },

  activeBg: {
    type: String,
    default: '#1276ff',
    name: '选中背景颜色',
    nameTip: '样式类型为圆形时才可用',
    filedType: 'color'
  },

  activeColor: {
    type: String,
    default: '#ffffff',
    name: '选中字体颜色',
    nameTip: '样式类型为圆形时才可用',
    filedType: 'color'
  },

  sticky: {
    type: Boolean,
    default: true,
    name: '启用吸顶',
    filedType: 'switch'
  },

  liftTop: {
    type: String,
    default: '',
    name: '锚点距离',
    nameTip: '滚动到锚点区时，锚点区与窗体顶部的距离，不设置时会自动计算',
    filedType: 'switch'
  },

  boxShadow: {
    type: String,
    default: '1px 1px 5px #888',
    name: '底部条高度',
    filedType: 'string'
  }
}
